{include file="buy/header.tpl"}
	


<!-- 头部// -->
{include file="buy/admintop.tpl"}

<!-- 左侧// -->


<!-- start: Content -->
			<div id="content" class="span12">
			
						
			<div class="row-fluid">


<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>


<table id="datatable" class="table table-striped  table-hover">
	<thead>
		<tr>
			<th>日期</th>
			<th>单数</th>
			<th>销售额</th>
		</tr>
	</thead>
	<tbody>
	{foreach from=$rs item=l}
	
		<tr>
			<td>{$l.m}</td>
			<td> {$l.num}</td>
			<td> {$l.money}</td>
			
		</tr>
		{/foreach}
	</tbody>
</table>


	</div></div>



	<script type="text/javascript" src="./static/public/jquery-1.11.0.min.js"></script>
{literal}

	<style type="text/css">
${demo.css}
	</style>
	<script type="text/javascript">
	$(function () {
	    $('#container').highcharts({
	        data: {
	            table: document.getElementById('datatable')
	        },
	        chart: {
	            type: 'line'
	        },
	        plotOptions: {
                series: {
                    borderWidth: 0,
                    dataLabels: {
                        enabled: true,
                        format: '{point.y}'
                    }
                }
            },
            
	        title: {
	            text: '最近7天订单情况'
	        },
	        yAxis: {
	            allowDecimals: false,
	            title: {
	                text: '单数'
	            }
	        },
	        tooltip: {
	            formatter: function() {
	                return '<b>'+ this.series.name +'</b><br/>'+
	                    this.point.y +' '+ this.point.name.toLowerCase();
	            }
	        }
	    });
	});

	</script>
	
	<script src="./static/public/highchart/js/highcharts.js"></script>
<script src="./static/public/highchart/js/modules/data.js"></script>
<script src="./static/public/highchart/js/modules/exporting.js"></script>
	{/literal}
	
{include file="news/footer.tpl"}

